<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo CON_PLATFORMNAME;?>后台管理系统</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="/static/admin/style.css" rel="stylesheet" media="screen" type="text/css" />
</head>
<body>
<?php include_once 'common/header.php';  ?>
<!-- admin_main -->
<div class="admin_main">
	<!-- Admin_top end -->
	<?php include_once 'common/site_left.php';  ?>
	<!-- Admin_Left End -->
	<div class="admin_right">
	<div class="admin_right_title"><div class="admin_right_title_left"><img src="/static/admin/admin_right_title_b.png"></div><div class="admin_right_title_mid"><strong>贷款管理</strong> / 我要贷款</div><div class="admin_right_title_right"><img src="/static/admin/admin_right_title_s.png"></div></div>
		<div class="admin_right_info">
			<iframe name="iframe" id="iframe" style="display:none"></iframe>
			<form action="/ychadmin/meiti/add" method="post" enctype="multipart/form-data" target="iframe">
			<input type="hidden" value="<?php echo isset($info['id']) ? $info['id'] : '';?>" name="id"/>
			<div class="admin_right_info_title"><h2>添加/修改</h2></div>
			<ul>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">标题：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="text" name="title" id="title" size="50"  value="<?php echo isset($info['title'])?$info['title']:''; ?>" />
					</div>
				</li>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">URL：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="text" name="url" id="url" size="50" value="<?php echo isset($info['url'])?$info['url']:''; ?>" />
					</div>
				</li>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">类型：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<select name="type">
						<option value="1" <?php echo isset($info['type']) && $info['type']==1 ?"selected='selected'":""; ?>>报表</option>
						<option value="2" <?php echo isset($info['type']) && $info['type']==2 ?"selected='selected'":""; ?>>媒体</option>
					</select>
					</div>
				</li>
				<li>
					<div class="admin_right_info_tr admin_right_info_l">缩略图：</div>
					<div class="admin_right_info_tr admin_right_info_m">
					<input type="file" name="image" id="image" />
					</div>
				</li>
				<?php if (isset($info['image']) && $info['image']!=''){?>
				<li>
					<div class="admin_right_info_tr admin_right_info_l"> </div>
					<div class="admin_right_info_tr admin_right_info_m">
					<img src="/<?php echo $info['image']; ?>" />
					</div>
				</li>
				<?php }?>
				<li>
					<input type="submit" value="提交" />
				</li>
			</ul>
			</form>
			</div>
	</div>
<!-- Admin_Right End -->
</div>
<!-- admin_main end -->
</body>
</html>
